declare var $: any;
declare var BlockUi: any;
declare var CallService: any;

interface IConfigScreen {
     PostReady: (message: any) => any;
}

module Screens {
    export class Configure implements IConfigScreen {
        private aUrl = Array();
        private options: any;
        constructor (params: any) { this.options=params }

        Ready() {
            $(document).ajaxStart(BlockUi()).ajaxStop($.unblockUI());
            CallService('POST', this.options.resolveUrl, { listToResolve: null }, true,
                          function (msg) { return this.PostReady(msg); }
            );
        }

        PostReady(msg: any) { return false; }
    }
}


class myScreen extends Screens.Configure { 
    PostReady(msg: any) { return true; }
}

var t = new myScreen("toto");
t.Ready();
